//
//  GouponDetailViewController.h
//  OrderSeat
//
//  Created by 王威 on 13-11-26.
//  Copyright (c) 2013年 wangwei. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "UseShopCell.h"
#import "MWPhotoBrowser.h"
#import <AssetsLibrary/AssetsLibrary.h>

@class CouponDetailDataSource;
@interface CouponDetailViewController : BaseViewController<UseShopCellDelegate,MWPhotoBrowserDelegate,UIAlertViewDelegate>

@property (strong, nonatomic) IBOutlet UIScrollView *theScrollview;
@property (strong, nonatomic) IBOutlet UIImageView *logoImage;
@property (strong, nonatomic) IBOutlet UILabel *titleLabel;
@property (strong, nonatomic) IBOutlet UIButton *likeBtn;
@property (strong, nonatomic) IBOutlet UIButton *favBtn;
@property (strong, nonatomic) IBOutlet UIButton *shareBtn;

@property (strong, nonatomic) IBOutlet UILabel *userTimeLabel;
@property (strong, nonatomic) IBOutlet UILabel *downloadCountLabel;
@property (strong, nonatomic) IBOutlet UILabel *downCountEndLabel;
@property (strong, nonatomic) IBOutlet UILabel *explainLabel;
@property (strong, nonatomic) IBOutlet UILabel *useShopLabel;
@property (strong, nonatomic) IBOutlet UILabel *commentCountLabel;

@property (strong, nonatomic) IBOutlet UITableView *shopTable;
@property (strong, nonatomic) IBOutlet UITableView *commentsTable;
@property (strong, nonatomic) IBOutlet UIButton *compostBtn;

@property (strong, nonatomic) NSString *couponId;
@property (strong, nonatomic) NSMutableArray *photoList;
@property (strong, nonatomic) CouponDetailDataSource *dataSource;

- (id)initWithCouponId:(NSString*)couponId;
- (void)setFormValues:(NSDictionary*)dic;

@end

@class SimpleCommentsCell;
@interface CouponDetailDataSource : BaseDataSource<UITableViewDataSource,UITableViewDelegate>

@property (strong, nonatomic) NSMutableArray *shopList;
@property (strong, nonatomic) NSMutableArray *commentsList;
@property (strong, nonatomic) SimpleCommentsCell *commentCell;
@property (strong, nonatomic) CouponDetailViewController *viewController;

- (void)fetchCouponInfo;
- (void)like;
- (void)favorites;
- (void)share;

@end